package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.QtsrBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface QtsrService extends BaseService<QtsrBean> {

	QtsrBean getQtsrBeanById(String id) throws Exception;
	
	void removeQtsrBeanById(String id) throws Exception;
	
	void removeQtsrBeanByIds(String ids) throws Exception;
	
	QtsrBean saveQtsrBean(QtsrBean crm) throws Exception;
	
	QtsrBean updateQtsrBean(QtsrBean crm) throws Exception;
	
	Page<QtsrBean>  findQtsrBeanByCond(QtsrBean bean,
			Page<QtsrBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveQtsrBeanExt(String sql) throws Exception;

	String findQtsrBeanExtCreate(String tableName) throws Exception;

	String findQtsrBeanExtEdit(String tableName, String id)
			throws Exception;

	String findQtsrBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasQtsrBeanExtData(String tableName, String id)
			throws Exception;
}